class userModel {
  String _uid;
  String _username;
  String _nickname;
  int _hasFace;
  int _patientId;
  String _patientName;
  int _height;
  String _weight;
  String _birthday;
  String _gender;
  String _approval;
  String _telephone;
  String _msg;
  String _memberCard;
  String _peer;
  String _agent;
  String _agentPhone;
  int _admin;

  userModel(
      {String uid,
      String username,
      String nickname,
      int hasFace,
      int patientId,
      String patientName,
      int height,
      String weight,
      String birthday,
      String gender,
      String approval,
      String telephone,
      String msg,
      String memberCard,
      String peer,
      String agent,
      String agentPhone,
      int admin}) {
    this._uid = uid;
    this._username = username;
    this._nickname = nickname;
    this._hasFace = hasFace;
    this._patientId = patientId;
    this._patientName = patientName;
    this._height = height;
    this._weight = weight;
    this._birthday = birthday;
    this._gender = gender;
    this._approval = approval;
    this._telephone = telephone;
    this._msg = msg;
    this._memberCard = memberCard;
    this._peer = peer;
    this._agent = agent;
    this._agentPhone = agentPhone;
    this._admin = admin;
  }

  String get uid => _uid;
  set uid(String uid) => _uid = uid;
  String get username => _username;
  set username(String username) => _username = username;
  String get nickname => _nickname;
  set nickname(String nickname) => _nickname = nickname;
  int get hasFace => _hasFace;
  set hasFace(int hasFace) => _hasFace = hasFace;
  int get patientId => _patientId;
  set patientId(int patientId) => _patientId = patientId;
  String get patientName => _patientName;
  set patientName(String patientName) => _patientName = patientName;
  int get height => _height;
  set height(int height) => _height = height;
  String get weight => _weight;
  set weight(String weight) => _weight = weight;
  String get birthday => _birthday;
  set birthday(String birthday) => _birthday = birthday;
  String get gender => _gender;
  set gender(String gender) => _gender = gender;
  String get approval => _approval;
  set approval(String approval) => _approval = approval;
  String get telephone => _telephone;
  set telephone(String telephone) => _telephone = telephone;
  String get msg => _msg;
  set msg(String msg) => _msg = msg;
  String get memberCard => _memberCard;
  set memberCard(String memberCard) => _memberCard = memberCard;
  String get peer => _peer;
  set peer(String peer) => _peer = peer;
  String get agent => _agent;
  set agent(String agent) => _agent = agent;
  String get agentPhone => _agentPhone;
  set agentPhone(String agentPhone) => _agentPhone = agentPhone;
  int get admin => _admin;
  set admin(int admin) => _admin = admin;

  userModel.fromJson(Map<String, dynamic> json) {
    _uid = json['uid'];
    _username = json['username'];
    _nickname = json['nickname'];
    _hasFace = json['has_face'];
    _patientId = json['patient_id'];
    _patientName = json['patient_name'];
    _height = json['height'];
    _weight = json['weight'];
    _birthday = json['birthday'];
    _gender = json['gender'];
    _approval = json['approval'];
    _telephone = json['telephone'];
    _msg = json['msg'];
    _memberCard = json['member_card'];
    _peer = json['peer'];
    _agent = json['agent'];
    _agentPhone = json['agent_phone'];
    _admin = json['admin'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['uid'] = this._uid;
    data['username'] = this._username;
    data['nickname'] = this._nickname;
    data['has_face'] = this._hasFace;
    data['patient_id'] = this._patientId;
    data['patient_name'] = this._patientName;
    data['height'] = this._height;
    data['weight'] = this._weight;
    data['birthday'] = this._birthday;
    data['gender'] = this._gender;
    data['approval'] = this._approval;
    data['telephone'] = this._telephone;
    data['msg'] = this._msg;
    data['member_card'] = this._memberCard;
    data['peer'] = this._peer;
    data['agent'] = this._agent;
    data['agent_phone'] = this._agentPhone;
    data['admin'] = this._admin;
    return data;
  }
}
